package cn.zhouchao.system.controller;

import cn.zhouchao.basic.util.PageList;
import cn.zhouchao.system.domain.SystemRecord;
import cn.zhouchao.system.query.SystemRecordQuery;
import cn.zhouchao.system.service.ISystemRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sysR")
public class SystemRecordController {
    @Autowired
    private ISystemRecordService systemRecordService;

    /**
     * 分页查询
     * @param query
     * @return
     */
    @PostMapping
    public PageList<SystemRecord> queryByPage(@RequestBody SystemRecordQuery query){
        return systemRecordService.queryByPage(query);
    }
}
